#ifndef __TECHNICOLOR_LUTS_H__
#define __TECHNICOLOR_LUTS_H__

#include "hi_type.h"


#if 1//VDP_TCHDR_709_086435_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086435_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086435_0[65] = {0, 49, 85, 117, 154, 190, 227, 267, 312, 352, 397, 441, 486, 530, 579, 627, 676, 724, 773, 826, 874, 927, 979, 1032, 1085, 1141, 1194, 1251, 1307, 1364, 1420, 1477, 1534, 1590, 1651, 1708, 1769, 1829, 1890, 1951, 2011, 2072, 2137, 2197, 2262, 2323, 2388, 2452, 2517, 2582, 2647, 2711, 2780, 2849, 2926, 3003, 3088, 3181, 3278, 3383, 3501, 3630, 3784, 3962, 4201};
HI_U16 S_LUT_TYP_709_086435_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086435_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086435_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086435_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086435_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086435_1[65] = {0, 43, 85, 120, 154, 191, 227, 270, 312, 355, 397, 442, 486, 533, 579, 628, 676, 725, 773, 824, 874, 927, 979, 1032, 1085, 1140, 1194, 1251, 1307, 1364, 1421, 1478, 1534, 1593, 1651, 1710, 1769, 1830, 1890, 1951, 2011, 2074, 2137, 2200, 2262, 2325, 2388, 2453, 2517, 2582, 2647, 2714, 2780, 2853, 2926, 3007, 3088, 3183, 3278, 3390, 3501, 3643, 3784, 3993, 4201};
HI_U16 S_LUT_TYP_709_086435_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086435_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086435_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086445_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086445_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086445_0[65] = {0, 49, 89, 130, 170, 210, 255, 304, 352, 401, 453, 506, 563, 615, 672, 732, 789, 850, 911, 975, 1040, 1105, 1170, 1234, 1303, 1372, 1441, 1510, 1582, 1651, 1724, 1801, 1874, 1951, 2023, 2100, 2181, 2258, 2335, 2416, 2497, 2578, 2659, 2744, 2825, 2910, 2999, 3088, 3181, 3278, 3383, 3488, 3602, 3723, 3849, 3982, 4128, 4286, 4452, 4638, 4840, 5071, 5342, 5662, 6074};
HI_U16 S_LUT_TYP_709_086445_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086445_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086445_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086445_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086445_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086445_1[65] = {0, 45, 89, 130, 170, 215, 259, 306, 352, 403, 453, 508, 563, 618, 672, 731, 789, 850, 911, 976, 1040, 1105, 1170, 1237, 1303, 1372, 1441, 1512, 1582, 1655, 1728, 1801, 1874, 1949, 2024, 2103, 2181, 2258, 2335, 2416, 2497, 2578, 2659, 2742, 2825, 2912, 2999, 3090, 3181, 3282, 3383, 3495, 3606, 3728, 3849, 3989, 4128, 4290, 4452, 4649, 4845, 5094, 5342, 5709, 6075};
HI_U16 S_LUT_TYP_709_086445_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086445_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086445_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086465_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086465_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086465_0[65] = {0, 49, 105, 150, 202, 255, 316, 376, 441, 506, 575, 648, 720, 797, 878, 959, 1044, 1129, 1218, 1307, 1400, 1493, 1590, 1692, 1793, 1894, 1999, 2108, 2214, 2327, 2436, 2554, 2671, 2788, 2906, 3031, 3153, 3278, 3408, 3533, 3667, 3800, 3934, 4067, 4205, 4346, 4484, 4630, 4771, 4917, 5067, 5217, 5366, 5516, 5670, 5828, 5985, 6143, 6301, 6463, 6629, 6795, 6985, 7232, 7616};
HI_U16 S_LUT_TYP_709_086465_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086465_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086465_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086465_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086465_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086465_1[65] = {0, 53, 105, 154, 202, 259, 316, 379, 441, 508, 575, 648, 720, 799, 878, 961, 1044, 1131, 1218, 1309, 1400, 1496, 1591, 1692, 1793, 1896, 1999, 2107, 2214, 2327, 2440, 2556, 2671, 2791, 2910, 3032, 3153, 3281, 3408, 3538, 3667, 3801, 3934, 4070, 4205, 4347, 4488, 4630, 4772, 4920, 5067, 5217, 5367, 5521, 5674, 5830, 5986, 6146, 6306, 6468, 6629, 6810, 6990, 7304, 7617};
HI_U16 S_LUT_TYP_709_086465_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086465_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086465_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086575_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086575_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086575_0[65] = {0, 49, 105, 154, 206, 263, 324, 384, 453, 522, 591, 668, 745, 826, 907, 991, 1081, 1170, 1263, 1356, 1453, 1554, 1655, 1760, 1866, 1975, 2084, 2197, 2311, 2428, 2550, 2671, 2792, 2918, 3047, 3177, 3306, 3440, 3573, 3711, 3853, 3990, 4136, 4282, 4427, 4577, 4727, 4877, 5030, 5188, 5346, 5504, 5666, 5832, 5994, 6159, 6329, 6499, 6673, 6843, 7021, 7200, 7378, 7556, 7718};
HI_U16 S_LUT_TYP_709_086575_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086575_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086575_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086575_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086575_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086575_1[65] = {0, 53, 105, 156, 206, 265, 324, 389, 453, 522, 591, 668, 745, 826, 907, 994, 1081, 1172, 1263, 1358, 1453, 1554, 1655, 1761, 1866, 1975, 2084, 2200, 2315, 2433, 2550, 2672, 2793, 2921, 3048, 3178, 3307, 3443, 3578, 3716, 3853, 3995, 4136, 4282, 4428, 4578, 4727, 4881, 5035, 5191, 5346, 5506, 5666, 5832, 5998, 6164, 6330, 6502, 6674, 6848, 7022, 7200, 7378, 7560, 7742};
HI_U16 S_LUT_TYP_709_086575_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086575_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086575_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086605_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086605_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086605_0[65] = {0, 49, 117, 186, 243, 299, 360, 425, 490, 558, 631, 704, 781, 858, 939, 1024, 1109, 1194, 1287, 1376, 1469, 1566, 1663, 1760, 1862, 1967, 2072, 2177, 2287, 2396, 2509, 2622, 2736, 2853, 2970, 3092, 3213, 3339, 3464, 3590, 3719, 3849, 3978, 4112, 4245, 4383, 4520, 4658, 4800, 4941, 5087, 5233, 5378, 5524, 5674, 5824, 5977, 6131, 6285, 6443, 6601, 6758, 6920, 7082, 7224};
HI_U16 S_LUT_TYP_709_086605_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086605_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086605_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086605_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086605_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086605_1[65] = {0, 59, 117, 180, 243, 302, 360, 425, 490, 561, 631, 706, 781, 860, 939, 1024, 1109, 1198, 1287, 1378, 1469, 1566, 1663, 1763, 1862, 1967, 2072, 2180, 2287, 2398, 2509, 2623, 2736, 2854, 2971, 3092, 3213, 3339, 3464, 3592, 3719, 3849, 3978, 4114, 4250, 4386, 4521, 4661, 4800, 4944, 5087, 5233, 5379, 5527, 5674, 5826, 5978, 6132, 6285, 6443, 6601, 6761, 6921, 7083, 7245};
HI_U16 S_LUT_TYP_709_086605_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086605_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086605_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086633_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086633_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086633_0[65] = {0, 49, 105, 154, 206, 259, 320, 380, 445, 514, 587, 660, 737, 813, 894, 979, 1064, 1153, 1242, 1335, 1433, 1530, 1627, 1732, 1833, 1938, 2048, 2157, 2270, 2384, 2501, 2618, 2740, 2861, 2987, 3112, 3238, 3367, 3501, 3634, 3768, 3905, 4043, 4185, 4326, 4472, 4618, 4767, 4917, 5067, 5221, 5374, 5532, 5690, 5848, 6010, 6176, 6338, 6503, 6673, 6843, 7017, 7216, 7471, 7871};
HI_U16 S_LUT_TYP_709_086633_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086633_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086633_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086633_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086633_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086633_1[65] = {0, 53, 105, 156, 206, 263, 320, 383, 445, 516, 587, 662, 737, 816, 894, 979, 1064, 1153, 1242, 1338, 1433, 1530, 1627, 1730, 1833, 1941, 2048, 2159, 2270, 2386, 2501, 2621, 2740, 2864, 2987, 3113, 3238, 3370, 3501, 3635, 3768, 3908, 4047, 4189, 4331, 4475, 4618, 4768, 4917, 5069, 5221, 5377, 5533, 5693, 5852, 6014, 6176, 6342, 6508, 6676, 6844, 7030, 7216, 7544, 7872};
HI_U16 S_LUT_TYP_709_086633_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086633_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086633_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086640_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086640_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086640_0[65] = {0, 49, 105, 154, 206, 263, 320, 380, 449, 514, 587, 660, 737, 813, 898, 979, 1068, 1157, 1246, 1340, 1437, 1534, 1631, 1736, 1837, 1947, 2052, 2165, 2278, 2392, 2509, 2626, 2748, 2869, 2995, 3120, 3250, 3379, 3513, 3646, 3780, 3917, 4059, 4201, 4342, 4488, 4634, 4783, 4933, 5083, 5237, 5395, 5552, 5710, 5872, 6034, 6196, 6362, 6528, 6698, 6872, 7062, 7284, 7564, 7977};
HI_U16 S_LUT_TYP_709_086640_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086640_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086640_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086640_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086640_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086640_1[65] = {0, 53, 105, 156, 206, 263, 320, 385, 449, 518, 587, 662, 737, 818, 898, 983, 1068, 1158, 1247, 1342, 1437, 1534, 1631, 1734, 1837, 1947, 2056, 2168, 2279, 2394, 2509, 2629, 2748, 2872, 2995, 3123, 3250, 3382, 3513, 3647, 3780, 3920, 4059, 4201, 4343, 4489, 4634, 4784, 4934, 5088, 5241, 5397, 5553, 5713, 5873, 6035, 6196, 6364, 6532, 6702, 6872, 7079, 7285, 7633, 7981};
HI_U16 S_LUT_TYP_709_086640_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086640_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086640_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086712_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086712_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086712_0[65] = {0, 49, 117, 202, 275, 336, 401, 469, 542, 619, 696, 777, 858, 943, 1032, 1121, 1214, 1307, 1404, 1505, 1607, 1712, 1817, 1926, 2036, 2149, 2262, 2380, 2501, 2618, 2744, 2869, 2995, 3120, 3254, 3383, 3521, 3654, 3792, 3934, 4075, 4217, 4363, 4508, 4658, 4808, 4962, 5115, 5269, 5427, 5585, 5747, 5909, 6070, 6236, 6402, 6572, 6742, 6912, 7086, 7264, 7438, 7616, 7798, 8029};
HI_U16 S_LUT_TYP_709_086712_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086712_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086712_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086712_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086712_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086712_1[65] = {0, 59, 117, 196, 275, 338, 401, 472, 542, 619, 696, 777, 858, 945, 1032, 1123, 1214, 1311, 1408, 1508, 1607, 1712, 1817, 1927, 2036, 2149, 2262, 2382, 2501, 2623, 2744, 2870, 2995, 3125, 3254, 3388, 3521, 3657, 3792, 3934, 4076, 4220, 4363, 4511, 4658, 4810, 4962, 5116, 5269, 5427, 5585, 5747, 5909, 6073, 6237, 6405, 6573, 6745, 6917, 7091, 7265, 7443, 7621, 7828, 8034};
HI_U16 S_LUT_TYP_709_086712_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086712_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086712_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086760_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086760_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086760_0[65] = {0, 49, 89, 125, 166, 206, 251, 295, 344, 389, 441, 490, 542, 595, 652, 704, 761, 822, 878, 939, 1000, 1060, 1121, 1186, 1251, 1315, 1380, 1445, 1514, 1582, 1647, 1720, 1789, 1858, 1930, 2003, 2076, 2149, 2226, 2303, 2384, 2465, 2550, 2639, 2732, 2829, 2926, 3031, 3144, 3258, 3379, 3509, 3646, 3792, 3946, 4112, 4294, 4492, 4707, 4949, 5225, 5544, 5933, 6435, 7034};
HI_U16 S_LUT_TYP_709_086760_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086760_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086760_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086760_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086760_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086760_1[65] = {0, 45, 89, 128, 166, 209, 251, 298, 344, 393, 441, 492, 542, 597, 652, 707, 761, 820, 878, 939, 1000, 1061, 1121, 1186, 1251, 1316, 1380, 1447, 1514, 1583, 1651, 1720, 1789, 1860, 1931, 2004, 2076, 2151, 2226, 2305, 2384, 2467, 2550, 2641, 2732, 2831, 2930, 3038, 3145, 3262, 3379, 3513, 3647, 3797, 3946, 4120, 4294, 4503, 4711, 4970, 5229, 5583, 5937, 6486, 7034};
HI_U16 S_LUT_TYP_709_086760_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086760_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086760_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

//butong
#if 1//VDP_TCHDR_709_086805_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086805_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 68, 64, 61, 58, 55, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 28, 28, 27, 27, 26, 25, 25, 24, 24, 23, 23, 23, 22, 22, 21, 21, 21, 20, 20, 20, 19, 19};
HI_U16 P_LUT_TYP_709_086805_0[65] = {0, 49, 117, 202, 263, 324, 384, 449, 518, 587, 660, 732, 809, 890, 971, 1052, 1137, 1226, 1315, 1404, 1497, 1594, 1692, 1789, 1890, 1991, 2096, 2202, 2307, 2416, 2525, 2639, 2752, 2869, 2983, 3104, 3221, 3343, 3468, 3590, 3715, 3845, 3974, 4104, 4233, 4367, 4500, 4638, 4775, 4913, 5055, 5192, 5338, 5480, 5625, 5771, 5921, 6070, 6220, 6370, 6524, 6677, 6831, 6989, 7127};
HI_U16 S_LUT_TYP_709_086805_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086805_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086805_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_709_086805_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_709_086805_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 68, 65, 61, 58, 55, 53, 51, 49, 47, 46, 44, 43, 41, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 30, 29, 29, 28, 28, 27, 26, 25, 25, 24, 24, 23, 23, 23, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19};
HI_U16 P_LUT_TYP_709_086805_1[65] = {0, 59, 117, 190, 263, 324, 384, 451, 518, 589, 660, 735, 809, 890, 971, 1054, 1137, 1226, 1315, 1409, 1502, 1597, 1692, 1791, 1890, 1993, 2096, 2202, 2307, 2416, 2525, 2639, 2752, 2870, 2987, 3105, 3222, 3345, 3468, 3594, 3719, 3847, 3974, 4104, 4233, 4369, 4505, 4641, 4776, 4916, 5055, 5197, 5338, 5482, 5626, 5774, 5921, 6071, 6221, 6373, 6524, 6680, 6836, 6992, 7147};
HI_U16 S_LUT_TYP_709_086805_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_709_086805_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_709_086805_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_2020_086755_0_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_2020_086755_0[65] = {2047, 1260, 585, 410, 298, 245, 200, 172, 153, 135, 122, 111, 102, 94, 87, 82, 76, 72, 67, 63, 60, 57, 54, 52, 49, 47, 45, 43, 42, 40, 39, 37, 36, 35, 34, 33, 31, 30, 29, 28, 27, 27, 26, 25, 25, 24, 24, 23, 22, 22, 21, 21, 20, 20, 20, 19, 19, 18, 18, 18, 17, 17, 17, 16, 16};
HI_U16 P_LUT_TYP_2020_086755_0[65] = {0, 49, 117, 178, 231, 287, 348, 413, 478, 546, 619, 692, 769, 846, 931, 1012, 1101, 1186, 1279, 1372, 1465, 1562, 1659, 1760, 1866, 1971, 2076, 2185, 2295, 2408, 2521, 2639, 2756, 2873, 2995, 3120, 3246, 3371, 3501, 3630, 3764, 3897, 4031, 4168, 4306, 4448, 4589, 4731, 4877, 5022, 5172, 5322, 5471, 5625, 5779, 5937, 6095, 6253, 6414, 6588, 6783, 7005, 7268, 7596, 8082};
HI_U16 S_LUT_TYP_2020_086755_0[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_2020_086755_0[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_2020_086755_0[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif

#if 1//VDP_TCHDR_2020_086755_1_L1000_D_PQ_FULL
HI_U16 C_LUT_TYP_2020_086755_1[65] = {2047, 1311, 575, 437, 299, 249, 199, 176, 152, 137, 122, 112, 102, 95, 87, 82, 76, 72, 67, 64, 60, 57, 53, 51, 49, 47, 45, 44, 42, 41, 39, 38, 36, 35, 33, 32, 31, 30, 29, 28, 27, 27, 26, 26, 25, 25, 24, 23, 22, 22, 21, 21, 20, 20, 20, 20, 19, 19, 18, 18, 17, 17, 17, 17, 16};
HI_U16 P_LUT_TYP_2020_086755_1[65] = {0, 59, 117, 174, 231, 290, 348, 413, 478, 549, 619, 694, 769, 850, 931, 1016, 1101, 1190, 1279, 1372, 1465, 1562, 1659, 1763, 1866, 1971, 2076, 2186, 2295, 2408, 2521, 2639, 2756, 2878, 2999, 3123, 3246, 3374, 3501, 3633, 3764, 3898, 4031, 4169, 4306, 4448, 4590, 4734, 4877, 5025, 5172, 5324, 5476, 5628, 5779, 5937, 6095, 6255, 6415, 6601, 6787, 7028, 7269, 7676, 8082};
HI_U16 S_LUT_TYP_2020_086755_1[65] = {0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023};
HI_U16 I_LUT_TYP_2020_086755_1[65] = {255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88, 85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52, 51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32};
HI_U16 D_LUT_TYP_2020_086755_1[65] = {0, 108, 206, 291, 367, 435, 498, 555, 609, 707, 794, 873, 945, 1012, 1074, 1132, 1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111, 2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894, 2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079};
#endif




// C_LUT, Rec709
HI_U16 pC_LUT_709_GRADE709[65] =
{
    1423, 470, 321, 238, 198, 184, 174, 159, 143, 130, 120, 111, 103, 95, 90, 85,
    81, 78, 76, 74, 72, 70, 69, 67, 64, 61, 58, 56, 55, 53, 52, 52,
    51, 50, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35,
    35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 26, 25, 25, 24, 24, 24, 24,
};
// C_LUT, Rec2020, for the different gradings
HI_U16 pC_LUT_2020_GRADE709[65] =
{
    1240, 398, 270, 220, 181, 155, 136, 125, 114, 106, 98, 92, 86, 82, 78, 76,
    74, 73, 72, 71, 70, 70, 69, 68, 67, 66, 64, 62, 60, 59, 57, 55,
    53, 51, 49, 48, 46, 45, 44, 43, 41, 40, 39, 38, 37, 36, 36, 35,
    34, 33, 32, 31, 30, 30, 29, 28, 27, 26, 26, 25, 25, 25, 24, 24, 23,
};
HI_U16 pC_LUT_2020_GRADE2020[65] =
{
    1337, 474, 355, 281, 237, 206, 183, 165, 150, 138, 127, 118, 110, 103, 98, 93,
    89, 84, 80, 77, 73, 70, 66, 63, 61, 58, 56, 54, 52, 50, 48, 47,
    45, 44, 43, 42, 41, 40, 39, 38, 36, 36, 35, 34, 33, 33, 32, 31,
    30, 30, 29, 29, 28, 28, 27, 27, 26, 26, 25, 25, 24, 24, 24, 24, 24,
};
HI_U16 pC_LUT_2020_GRADEP3[65] =
{
    1239, 436, 319, 260, 220, 193, 172, 155, 142, 130, 119, 110, 103, 96, 90, 86,
    81, 78, 75, 71, 68, 65, 63, 60, 57, 55, 53, 51, 49, 48, 47, 46,
    45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 31,
    30, 29, 29, 28, 28, 27, 27, 26, 26, 25, 25, 25, 24, 24, 24, 23, 23,
};
// P LUTs :
// 2000 nits
HI_U16 pPN_2000[455] =
{
    0, 34, 52, 66, 77, 92, 103, 117, 132, 143, 157, 175, 189, 206, 223, 243, 263, 286, 309, 332, 358, 386, 415, 446, 481, 518, 558, 598, 644, 693, 744, 798, 856, 919, 987, 1062, 1139, 1222, 1311, 1408, 1511, 1623, 1743, 1869, 2006, 2152, 2309, 2478, 2661, 2856, 3065, 3288, 3529, 3786, 4064, 4361, 4679, 5022, 5389, 5781, 6204, 6659, 7146, 7667, 8228,
    0, 49, 69, 89, 106, 123, 137, 155, 172, 192, 209, 229, 249, 269, 292, 315, 338, 363, 392, 421, 452, 484, 518, 555, 595, 635, 681, 730, 778, 833, 890, 950, 1016, 1085, 1159, 1239, 1322, 1414, 1508, 1611, 1720, 1834, 1960, 2092, 2232, 2384, 2544, 2716, 2899, 3096, 3303, 3526, 3763, 4018, 4287, 4576, 4885, 5214, 5563, 5938, 6339, 6765, 7220, 7707, 8225,
    0, 63, 94, 117, 140, 163, 183, 206, 229, 252, 275, 298, 323, 349, 375, 404, 432, 464, 495, 529, 567, 607, 647, 690, 733, 781, 833, 884, 942, 1002, 1065, 1133, 1205, 1279, 1359, 1445, 1537, 1631, 1734, 1840, 1955, 2075, 2204, 2341, 2487, 2639, 2802, 2976, 3159, 3354, 3560, 3780, 4015, 4261, 4525, 4802, 5100, 5412, 5747, 6099, 6473, 6874, 7295, 7744, 8222,
    0, 86, 126, 157, 189, 217, 243, 272, 300, 329, 358, 386, 418, 449, 481, 515, 552, 590, 627, 670, 710, 756, 801, 850, 904, 956, 1013, 1073, 1136, 1205, 1274, 1348, 1425, 1508, 1594, 1686, 1780, 1883, 1989, 2103, 2221, 2347, 2478, 2619, 2765, 2922, 3085, 3260, 3443, 3635, 3838, 4052, 4281, 4519, 4774, 5040, 5320, 5618, 5933, 6265, 6614, 6983, 7372, 7784, 8219,
    0, 114, 169, 212, 249, 286, 323, 358, 392, 429, 464, 501, 538, 578, 618, 658, 701, 744, 790, 839, 887, 939, 993, 1050, 1108, 1170, 1233, 1299, 1371, 1442, 1520, 1600, 1686, 1771, 1866, 1960, 2063, 2169, 2281, 2398, 2521, 2650, 2785, 2925, 3074, 3231, 3394, 3566, 3746, 3935, 4135, 4344, 4562, 4791, 5034, 5286, 5552, 5830, 6124, 6431, 6754, 7094, 7449, 7824, 8216,
    0, 155, 223, 278, 329, 378, 421, 466, 512, 555, 601, 647, 693, 738, 787, 836, 887, 939, 993, 1047, 1105, 1165, 1225, 1288, 1354, 1422, 1494, 1568, 1646, 1726, 1809, 1895, 1983, 2078, 2175, 2278, 2384, 2496, 2610, 2730, 2856, 2985, 3122, 3265, 3414, 3569, 3729, 3898, 4075, 4258, 4450, 4650, 4859, 5077, 5306, 5543, 5789, 6050, 6319, 6602, 6897, 7206, 7527, 7861, 8213,
    0, 203, 292, 366, 429, 492, 549, 604, 661, 715, 770, 827, 881, 939, 996, 1053, 1113, 1173, 1236, 1299, 1365, 1434, 1502, 1574, 1648, 1723, 1803, 1883, 1966, 2052, 2141, 2235, 2330, 2430, 2530, 2636, 2747, 2859, 2979, 3099, 3228, 3357, 3494, 3635, 3783, 3935, 4092, 4256, 4424, 4602, 4785, 4974, 5171, 5374, 5586, 5807, 6036, 6273, 6519, 6777, 7043, 7318, 7604, 7901, 8211
};
// 1000 nits
HI_U16 pPN_1000[455] =
{
    0, 49, 69, 89, 105, 121, 138, 154, 174, 190, 210, 227, 247, 267, 291, 316, 340, 364, 393, 421, 453, 486, 518, 554, 595, 635, 680, 728, 777, 834, 890, 951, 1016, 1085, 1162, 1238, 1323, 1412, 1510, 1611, 1720, 1837, 1959, 2092, 2234, 2384, 2546, 2716, 2898, 3096, 3303, 3525, 3764, 4019, 4286, 4577, 4885, 5213, 5565, 5937, 6338, 6763, 7220, 7706, 8224,
    0, 65, 93, 117, 142, 162, 186, 206, 227, 251, 275, 295, 324, 348, 376, 405, 433, 465, 498, 530, 567, 607, 648, 688, 733, 781, 834, 886, 943, 1004, 1064, 1133, 1206, 1279, 1360, 1445, 1534, 1631, 1732, 1841, 1955, 2076, 2206, 2339, 2485, 2639, 2805, 2975, 3161, 3355, 3562, 3780, 4015, 4262, 4525, 4804, 5099, 5411, 5747, 6099, 6476, 6872, 7297, 7746, 8220,
    0, 85, 125, 158, 186, 219, 243, 271, 299, 328, 356, 389, 417, 449, 482, 518, 550, 587, 627, 668, 712, 757, 801, 850, 903, 955, 1016, 1073, 1137, 1202, 1275, 1348, 1425, 1510, 1595, 1684, 1781, 1882, 1991, 2101, 2222, 2347, 2477, 2619, 2764, 2922, 3084, 3258, 3440, 3634, 3837, 4051, 4282, 4521, 4772, 5039, 5322, 5618, 5933, 6265, 6613, 6981, 7374, 7783, 8220,
    0, 117, 166, 210, 251, 287, 324, 356, 393, 429, 465, 502, 538, 579, 619, 660, 700, 745, 789, 838, 886, 939, 992, 1048, 1109, 1170, 1234, 1299, 1372, 1445, 1522, 1599, 1684, 1773, 1866, 1963, 2064, 2169, 2283, 2396, 2521, 2651, 2784, 2926, 3076, 3230, 3396, 3566, 3748, 3934, 4136, 4343, 4561, 4792, 5035, 5286, 5553, 5832, 6123, 6431, 6755, 7095, 7451, 7823, 8216,
    0, 154, 223, 279, 328, 376, 421, 465, 510, 554, 599, 644, 692, 737, 785, 834, 886, 939, 992, 1048, 1105, 1166, 1226, 1287, 1356, 1425, 1493, 1566, 1643, 1724, 1809, 1894, 1983, 2080, 2177, 2279, 2384, 2493, 2610, 2732, 2857, 2987, 3124, 3266, 3412, 3570, 3732, 3897, 4076, 4258, 4452, 4650, 4861, 5075, 5306, 5541, 5792, 6051, 6322, 6601, 6896, 7204, 7528, 7864, 8212,
    0, 202, 291, 364, 429, 490, 550, 607, 660, 716, 769, 826, 882, 939, 996, 1052, 1113, 1174, 1234, 1299, 1364, 1433, 1502, 1574, 1647, 1724, 1801, 1882, 1967, 2052, 2141, 2234, 2331, 2428, 2530, 2635, 2748, 2861, 2979, 3100, 3226, 3359, 3493, 3634, 3780, 3934, 4092, 4254, 4424, 4602, 4784, 4974, 5172, 5375, 5585, 5808, 6034, 6273, 6520, 6775, 7042, 7317, 7605, 7900, 8212,
    0, 267, 380, 474, 559, 635, 708, 777, 846, 915, 979, 1048, 1113, 1182, 1251, 1319, 1388, 1457, 1530, 1603, 1676, 1752, 1829, 1910, 1991, 2072, 2157, 2246, 2335, 2428, 2521, 2619, 2720, 2821, 2930, 3039, 3149, 3266, 3383, 3505, 3634, 3764, 3897, 4035, 4177, 4326, 4476, 4634, 4796, 4962, 5132, 5310, 5492, 5682, 5877, 6079, 6285, 6500, 6722, 6949, 7184, 7427, 7682, 7941, 8208

};
// 1200 nits
HI_U16 pPN_1200[455] =
{
    0, 44, 63, 81, 96, 115, 129, 144, 159, 177, 196, 211, 233, 251, 273, 292, 318, 340, 366, 395, 425, 454, 488, 525, 562, 602, 647, 691, 743, 794, 850, 909, 972, 1038, 1112, 1190, 1271, 1360, 1456, 1555, 1663, 1777, 1899, 2032, 2172, 2320, 2483, 2653, 2834, 3030, 3240, 3462, 3702, 3957, 4227, 4518, 4829, 5161, 5516, 5897, 6303, 6735, 7201, 7696, 8224,
    0, 59, 85, 111, 129, 151, 170, 192, 211, 233, 255, 277, 299, 325, 351, 377, 406, 436, 466, 499, 536, 573, 610, 650, 695, 739, 791, 842, 898, 953, 1016, 1083, 1153, 1227, 1304, 1389, 1478, 1570, 1670, 1777, 1892, 2010, 2139, 2272, 2416, 2571, 2734, 2904, 3089, 3284, 3491, 3713, 3946, 4197, 4459, 4744, 5043, 5361, 5697, 6055, 6440, 6846, 7275, 7736, 8224,
    0, 81, 115, 148, 174, 200, 225, 251, 281, 307, 333, 362, 392, 421, 451, 484, 517, 554, 591, 628, 669, 713, 757, 805, 853, 909, 964, 1020, 1083, 1149, 1216, 1289, 1363, 1445, 1530, 1618, 1714, 1814, 1917, 2028, 2147, 2272, 2405, 2542, 2690, 2845, 3007, 3181, 3366, 3558, 3765, 3979, 4208, 4452, 4707, 4977, 5261, 5564, 5882, 6222, 6576, 6953, 7352, 7773, 8220,
    0, 107, 155, 196, 233, 266, 299, 333, 366, 399, 432, 469, 502, 539, 580, 617, 658, 702, 746, 791, 839, 887, 938, 994, 1049, 1108, 1171, 1238, 1304, 1378, 1452, 1530, 1611, 1700, 1788, 1884, 1984, 2091, 2202, 2317, 2438, 2568, 2701, 2841, 2989, 3148, 3310, 3484, 3665, 3853, 4053, 4264, 4485, 4718, 4962, 5220, 5490, 5775, 6074, 6388, 6717, 7064, 7430, 7814, 8217,
    0, 144, 207, 259, 307, 351, 392, 436, 477, 521, 562, 606, 647, 691, 739, 787, 835, 883, 935, 986, 1042, 1101, 1160, 1223, 1286, 1352, 1422, 1493, 1567, 1648, 1729, 1814, 1903, 1995, 2091, 2191, 2294, 2405, 2520, 2638, 2764, 2893, 3030, 3174, 3321, 3477, 3639, 3809, 3986, 4171, 4363, 4567, 4781, 5002, 5232, 5475, 5727, 5993, 6270, 6558, 6861, 7175, 7507, 7851, 8213,
    0, 188, 273, 340, 403, 458, 514, 565, 617, 669, 720, 776, 828, 883, 935, 990, 1049, 1108, 1167, 1230, 1293, 1356, 1426, 1493, 1567, 1640, 1714, 1796, 1877, 1962, 2050, 2139, 2235, 2331, 2435, 2538, 2645, 2760, 2878, 3000, 3126, 3259, 3392, 3536, 3684, 3835, 3994, 4160, 4330, 4507, 4696, 4888, 5087, 5294, 5512, 5738, 5970, 6214, 6466, 6732, 7005, 7289, 7585, 7892, 8213,
    0, 248, 355, 443, 521, 595, 661, 728, 794, 857, 920, 986, 1049, 1112, 1179, 1245, 1312, 1378, 1448, 1518, 1589, 1663, 1740, 1818, 1895, 1977, 2062, 2147, 2235, 2324, 2416, 2512, 2612, 2716, 2819, 2930, 3041, 3155, 3273, 3395, 3525, 3654, 3787, 3927, 4071, 4219, 4374, 4533, 4696, 4866, 5039, 5220, 5409, 5601, 5801, 6007, 6218, 6440, 6669, 6905, 7149, 7400, 7659, 7929, 8209

};
// 1500 nits
HI_U16 pPN_1500[455] =
{
    0, 40, 59, 73, 89, 102, 116, 132, 145, 162, 178, 195, 211, 231, 251, 271, 294, 317, 340, 367, 393, 423, 456, 489, 525, 565, 605, 651, 697, 747, 800, 859, 919, 985, 1057, 1130, 1213, 1299, 1391, 1490, 1596, 1708, 1827, 1960, 2098, 2247, 2406, 2574, 2756, 2951, 3162, 3384, 3625, 3880, 4154, 4448, 4762, 5099, 5459, 5846, 6259, 6702, 7177, 7683, 8225,
    0, 53, 79, 99, 119, 139, 155, 175, 195, 215, 235, 254, 278, 301, 324, 347, 373, 403, 433, 463, 496, 532, 568, 608, 648, 694, 740, 790, 843, 899, 958, 1024, 1090, 1163, 1239, 1322, 1408, 1500, 1599, 1702, 1814, 1933, 2059, 2191, 2336, 2488, 2650, 2822, 3004, 3199, 3407, 3628, 3866, 4117, 4385, 4669, 4973, 5294, 5638, 6004, 6394, 6811, 7250, 7723, 8222,
    0, 73, 106, 132, 159, 185, 208, 231, 254, 281, 307, 330, 360, 387, 416, 446, 479, 512, 549, 585, 625, 664, 707, 753, 800, 849, 902, 958, 1018, 1081, 1147, 1219, 1292, 1371, 1454, 1540, 1632, 1732, 1834, 1946, 2062, 2184, 2316, 2452, 2597, 2753, 2918, 3090, 3275, 3470, 3675, 3893, 4124, 4365, 4626, 4901, 5188, 5495, 5823, 6166, 6533, 6920, 7326, 7762, 8222,
    0, 99, 142, 178, 211, 245, 274, 304, 337, 367, 400, 430, 466, 499, 535, 572, 608, 651, 691, 734, 780, 826, 876, 929, 985, 1041, 1100, 1163, 1229, 1299, 1371, 1447, 1527, 1613, 1702, 1794, 1894, 1996, 2105, 2221, 2340, 2468, 2601, 2743, 2891, 3047, 3212, 3384, 3566, 3757, 3959, 4170, 4395, 4630, 4878, 5142, 5416, 5707, 6011, 6332, 6672, 7029, 7405, 7802, 8218,
    0, 129, 188, 238, 281, 321, 360, 400, 440, 476, 516, 558, 598, 641, 684, 727, 773, 820, 869, 919, 972, 1028, 1084, 1143, 1206, 1269, 1335, 1404, 1477, 1553, 1632, 1718, 1804, 1894, 1989, 2088, 2191, 2300, 2412, 2531, 2654, 2786, 2921, 3063, 3212, 3367, 3529, 3701, 3880, 4068, 4263, 4468, 4683, 4907, 5145, 5390, 5651, 5922, 6206, 6503, 6814, 7141, 7481, 7838, 8215,
    0, 172, 248, 311, 367, 420, 473, 522, 568, 618, 668, 717, 767, 816, 869, 922, 975, 1031, 1087, 1147, 1206, 1269, 1335, 1401, 1471, 1543, 1616, 1692, 1771, 1854, 1940, 2029, 2122, 2217, 2316, 2422, 2528, 2640, 2759, 2878, 3004, 3136, 3271, 3414, 3562, 3718, 3876, 4045, 4217, 4398, 4587, 4782, 4987, 5198, 5419, 5651, 5892, 6143, 6404, 6675, 6956, 7253, 7557, 7878, 8212,
    0, 228, 327, 406, 479, 545, 611, 671, 734, 793, 853, 912, 972, 1034, 1094, 1157, 1219, 1285, 1352, 1418, 1487, 1560, 1632, 1708, 1784, 1864, 1943, 2029, 2115, 2201, 2293, 2389, 2485, 2587, 2690, 2799, 2908, 3024, 3143, 3265, 3390, 3523, 3658, 3797, 3942, 4094, 4250, 4408, 4577, 4749, 4927, 5112, 5304, 5502, 5707, 5918, 6140, 6368, 6602, 6847, 7101, 7363, 7637, 7918, 8208
};
// S_LUT
HI_U16 pS_LUT[65] =
{
    0, 128, 181, 222, 256, 286, 314, 339, 362, 384, 405, 425, 443, 462, 479, 496, 512, 528, 543, 558, 572, 587, 600, 614, 627, 640, 653, 665, 677, 689, 701, 713, 724, 735, 746, 757, 768, 779, 789, 799, 810, 820, 830, 839, 849, 859, 868, 878, 887, 896, 905, 914, 923, 932, 941, 949, 958, 966, 975, 983, 991, 1000, 1008, 1016, 1023
};
// LUT_invsqrtT
HI_U16 pI_LUT[65] =
{
    255, 209, 181, 162, 148, 137, 128, 121, 114, 109, 105, 100, 97, 93, 91, 88,
    85, 83, 81, 79, 77, 75, 74, 72, 71, 70, 68, 67, 66, 65, 64, 63,
    62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 55, 54, 53, 53, 52, 52,
    51, 51, 50, 50, 49, 49, 48, 48, 48, 47, 47, 46, 46, 46, 45, 37, 32
};

// D_LUT PURE
HI_U16 pD_LUT_PURE[65] =
{
    0, 26, 50, 72, 93, 114, 135, 155,
    175, 215, 254, 292, 329, 367, 403, 440,
    476, 548, 618, 688, 757, 826, 894, 961, 1029, 1095, 1161, 1227, 1292, 1358, 1422, 1487,
    1551, 1679, 1806, 1931, 2056, 2181, 2304, 2427, 2549, 2671, 2792, 2913, 3033, 3153, 3272, 3391,
    3509, 3627, 3744, 3862, 3978, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095
};

// D_LUTs PQ
HI_U16 pD_LUT_PQ_1000[65] =
{
    0, 108, 206, 291, 367, 435, 498, 555,
    609, 707, 794, 873, 945, 1012, 1074, 1132,
    1186, 1286, 1376, 1458, 1533, 1603, 1668, 1729, 1786, 1840, 1891, 1939, 1985, 2029, 2071, 2111,
    2150, 2222, 2290, 2353, 2412, 2467, 2520, 2570, 2617, 2662, 2705, 2746, 2785, 2823, 2859, 2894,
    2927, 2960, 2991, 3021, 3050, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079, 3079
};
HI_U16 pD_LUT_PQ_1200[65] =
{
    0, 118, 223, 314, 394, 466, 531, 592,
    648, 749, 840, 922, 996, 1065, 1129, 1189,
    1245, 1347, 1439, 1523, 1600, 1671, 1737, 1799, 1857, 1912, 1964, 2013, 2059, 2104, 2146, 2187,
    2226, 2299, 2367, 2431, 2491, 2547, 2599, 2649, 2697, 2742, 2785, 2826, 2866, 2904, 2940, 2975,
    3008, 3041, 3072, 3103, 3132, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160, 3160,
};
HI_U16 pD_LUT_PQ_1500[65] =
{
    0, 132, 246, 343, 429, 505, 575, 638,
    697, 804, 899, 984, 1061, 1133, 1199, 1261,
    1318, 1424, 1519, 1605, 1683, 1756, 1824, 1887, 1946, 2002, 2054, 2104, 2151, 2196, 2239, 2281,
    2320, 2394, 2463, 2527, 2588, 2644, 2697, 2748, 2795, 2841, 2884, 2925, 2965, 3003, 3039, 3074,
    3108, 3141, 3172, 3202, 3231, 3260, 3260, 3260, 3260, 3260, 3260, 3260, 3260, 3260, 3260, 3260, 3260
};
HI_U16 pD_LUT_PQ_2000[65] =
{
    0, 151, 278, 384, 477, 559, 634, 702,
    765, 878, 978, 1068, 1149, 1224, 1293, 1357,
    1417, 1526, 1624, 1713, 1794, 1868, 1938, 2002, 2063, 2119, 2173, 2224, 2272, 2318, 2361, 2403,
    2443, 2518, 2588, 2653, 2714, 2771, 2824, 2875, 2923, 2969, 3012, 3054, 3093, 3131, 3168, 3203,
    3237, 3269, 3300, 3331, 3360, 3388, 3388, 3388, 3388, 3388, 3388, 3388, 3388, 3388, 3388, 3388, 3388
};

// D_LUT BT709
HI_U16 pD_LUT_709[65] =
{
    0, 1, 4, 10, 18, 28, 40, 55,
    72, 91, 112, 136, 162, 190, 220, 253,
    288, 364, 440, 516, 591, 666, 740, 813, 886, 959, 1031, 1102, 1174, 1245, 1315, 1385,
    1455, 1595, 1733, 1870, 2006, 2141, 2276, 2409, 2542, 2675, 2806, 2938, 3068, 3198, 3328, 3457,
    3585, 3713, 3841, 3968, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095
};

// D_LUT ARIB
HI_U16 pD_LUT_ARIB[65] =
{
    0, 105, 209, 314, 419, 523, 628, 733,
    837, 942, 1047, 1151, 1256, 1361, 1465, 1570,
    1675, 1779, 1884, 1989, 2093, 2196, 2290, 2377, 2459, 2536, 2608, 2677, 2742, 2804, 2864, 2920,
    2975, 3078, 3174, 3263, 3347, 3427, 3502, 3573, 3642, 3707, 3769, 3829, 3886, 3941, 3994, 4045,
    4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095
};


HI_U16 pP_LUT_zombie_086712[65] =
{
    0, 183, 263, 330, 388, 444, 498, 550, 599, 650, 700,
    752, 805, 857, 911, 964, 1021, 1079, 1136, 1197, 1259,
    1325, 1390, 1458, 1529, 1603, 1676, 1754, 1836, 1919, 2007,
    2096, 2190, 2287, 2387, 2491, 2601, 2712, 2830, 2951, 3077,
    3208, 3344, 3485, 3631, 3787, 3946, 4109, 4283, 4463, 4650,
    4843, 5046, 5254, 5472, 5700, 5936, 6183, 6440, 6705, 6983,
    7271, 7574, 7885, 8212
};

HI_U16 pP_LUT_zombie_086640[65] =
{
    0, 115, 164, 207, 247, 283, 319, 351, 388, 423, 459,
    496, 531, 572, 611, 652, 692, 736, 780, 829, 876,
    929, 981, 1037, 1098, 1158, 1222, 1286, 1359, 1431, 1508,
    1585, 1670, 1758, 1851, 1947, 2048, 2153, 2267, 2380, 2504,
    2634, 2767, 2909, 3059, 3213, 3379, 3549, 3731, 3917, 4119,
    4327, 4545, 4777, 5020, 5272, 5540, 5820, 6112, 6422, 6747,
    7089, 7447, 7821, 8216
};

HI_U16 pP_LUT_rampe_2000[65] =
{
    0, 198, 284, 356, 418, 479, 535, 588, 644, 697, 751,
    807, 860, 916, 972, 1028, 1087, 1147, 1209, 1271, 1336,
    1404, 1471, 1542, 1615, 1689, 1768, 1847, 1930, 2015, 2103,
    2197, 2291, 2390, 2490, 2596, 2706, 2818, 2937, 3057, 3186,
    3315, 3452, 3593, 3741, 3894, 4051, 4216, 4385, 4563, 4747,
    4937, 5136, 5340, 5554, 5777, 6008, 6248, 6496, 6757, 7026,
    7305, 7595, 7896, 8211
};

HI_U16 pP_LUT_rampe_1500[65] =
{
    0, 155, 224, 281, 332, 380, 427, 473, 516, 561, 606,
    653, 699, 745, 794, 843, 893, 946, 999, 1055, 1111,
    1171, 1233, 1297, 1364, 1432, 1502, 1575, 1652, 1732, 1815,
    1903, 1993, 2086, 2184, 2287, 2392, 2502, 2619, 2738, 2862,
    2994, 3129, 3272, 3420, 3576, 3736, 3906, 4081, 4264, 4456,
    4655, 4864, 5080, 5308, 5545, 5794, 6054, 6324, 6605, 6899,
    7208, 7526, 7862, 8213
};

HI_U16 pP_LUT_rampe_1200[65] =
{
    0, 170, 246, 307, 364, 415, 465, 513, 560, 609, 656,
    707, 755, 805, 856, 908, 962, 1017, 1073, 1131, 1191,
    1253, 1318, 1384, 1453, 1523, 1596, 1673, 1751, 1835, 1920,
    2007, 2101, 2195, 2296, 2398, 2503, 2616, 2733, 2853, 2979,
    3111, 3245, 3389, 3537, 3690, 3850, 4018, 4191, 4371, 4561,
    4758, 4963, 5176, 5399, 5632, 5872, 6125, 6387, 6662, 6947,
    7243, 7553, 7875, 8213
};

HI_U16 pP_LUT_zombie_086640_1000[65] =
{
    0, 115, 164, 207, 247, 283, 319, 351, 388, 423, 459,
    496, 531, 572, 611, 652, 692, 736, 780, 829, 876,
    929, 981, 1037, 1098, 1158, 1222, 1286, 1359, 1431, 1508,
    1585, 1670, 1758, 1851, 1947, 2048, 2153, 2267, 2380, 2504,
    2634, 2767, 2909, 3059, 3213, 3379, 3549, 3731, 3917, 4119,
    4327, 4545, 4777, 5020, 5272, 5540, 5820, 6112, 6422, 6747,
    7089, 7447, 7821, 8216
};

HI_U16 pP_LUT_zombie_086640_1200[65] =
{
    0, 106, 153, 193, 230, 262, 295, 328, 361, 394, 426,
    463, 496, 532, 573, 610, 650, 694, 737, 782, 830, 877, 928, 983, 1038, 1097,
    1159, 1226, 1292, 1365, 1439, 1517, 1597, 1686, 1774, 1869, 1969,
    2076, 2186, 2301, 2422, 2551, 2684, 2824, 2972, 3131, 3293, 3467,
    3648, 3837, 4037, 4248, 4470, 4703, 4948, 5206, 5477, 5763, 6063, 6379,
    6709, 7058, 7426, 7812, 8217
};

HI_U16 pP_LUT_zombie_086640_1500[65] =
{
    0, 98, 140, 175, 208, 242, 270, 300, 332, 362, 395,
    424, 460, 493, 528, 565, 601, 643, 683, 726, 771,
    817, 867, 919, 975, 1030, 1089, 1152, 1217, 1287, 1358,
    1434, 1514, 1599, 1688, 1780, 1879, 1981, 2090, 2206, 2324,
    2452, 2585, 2727, 2875, 3031, 3196, 3368, 3550, 3741,
    3943, 4155, 4380, 4615, 4864, 5129, 5403, 5695, 6001,
    6323, 6664, 7023, 7401, 7800, 8218
};

HI_U16 pP_LUT_zombie_086640_2000[65] =
{
    0, 85, 124, 155, 186, 214, 240, 268, 296, 325, 353, 381, 413, 443, 475,
    509, 545, 583, 620, 662, 702, 748, 792, 841, 894, 946, 1003, 1062, 1125,
    1194, 1262, 1336, 1413, 1495, 1581, 1673, 1766, 1869, 1975, 2088, 2206,
    2332, 2463, 2603, 2749, 2906, 3069, 3244, 3427, 3619, 3822, 4037, 4266,
    4505, 4760, 5027, 5308, 5607, 5923, 6256, 6606, 6977, 7368, 7782, 8219
};

#endif
